package com.tianpengtech.admin;

import com.jfinal.config.Routes;
import com.tianpengtech.admin.account.AccountAdminController;
import com.tianpengtech.admin.authenticate.AuthenticateAdminController;
import com.tianpengtech.admin.dictionary.DictionaryAdminController;
import com.tianpengtech.admin.fair.FairAdminController;
import com.tianpengtech.admin.fairadvertisement.FairAdvertisementAdminController;
import com.tianpengtech.admin.feedback.FeedBackAdminController;
import com.tianpengtech.admin.opertion.OpertionAdminController;
import com.tianpengtech.admin.permission.PermissionAdminController;
import com.tianpengtech.admin.role.RoleAdminController;
import com.tianpengtech.admin.task.TaskAdminController;
import com.tianpengtech.admin.user.UserAdminController;
import com.tianpengtech.common.plugin.shiro.ext.ShiroInterceptor;

public class AdminRoutes extends Routes{

	@Override
	public void config() {
		setBaseViewPath("/WEB-INF/view");

		addInterceptor(new ShiroInterceptor());
		add("/admin", AdminCommonController.class, "/admin");
		add("/admin/role", RoleAdminController.class, "/admin/role");
		add("/admin/permission", PermissionAdminController.class, "/admin/permission");
		add("/admin/account", AccountAdminController.class, "/admin/account");
		add("/admin/dictionary",DictionaryAdminController.class, "/admin/dictionary");
		add("/admin/opertion",OpertionAdminController.class, "/admin/opertion");
		add("/admin/user",UserAdminController.class, "/admin/user");
        add("/admin/authenticate",AuthenticateAdminController.class, "/admin/authenticate");
        add("/admin/task",TaskAdminController.class, "/admin/task");
        add("/admin/fair",FairAdminController.class, "/admin/fair");
        add("/admin/feedback",FeedBackAdminController.class, "/admin/feedback");
        add("/admin/fairadvertisement",FairAdvertisementAdminController.class, "/admin/fairadvertisement");
	}
}
